home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Question-how print time from unix
- Date: Wed, 27 Mar 96 12:43:16 GMT
- Organization: none
- Message-ID: <827930596snz@genesis.demon.co.uk>
- References: <4jahpf$dpp@cloner2.ix.netcom.com>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4jahpf$dpp@cloner2.ix.netcom.com>
- martypro@ix.netcom.com "Marty" writes:
-
- >Ok here is a dumb question I'm sure:
- >
- >Below is the relevant code I am using to input the time into a structure
- >element and can't find the appropriate conversion character to use with
- >printf to print it, that is if that is how you print it. Any help you
- >can give me will be greatly appreciated.
-
- printf() can't format date/time strings from a time_t value. For that
- you should look at ctime(), gmtime(), localtime(), asctime() and strftime().
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-